<?php


namespace app\exception;


class ErrorRequestException extends BaseException
{
    public $code = 404;
    public $message = 'error request!';

    public static function permission_denied() {
        $e = new ErrorRequestException();
        $e->setMessage('无此权限');
        return $e;
    }
}